<template>
	<view>
		<!-- 轮播图组件 -->
		<swiper indicator-dots autoplay :interval="3000" :duration="1000" circular>
			<swiper-item v-for="(item,index) in resdata" :key="index" @tap="event(item)">
				<view class="swiper-item">
					<image :src="item.src" lazy-load style="height: 310rpx;"></image>
				</view>
			</swiper-item>
		</swiper>
	</view>
</template>

<script>
	export default {
		props:{
			resdata:{
				type:Array,
				default:function(){
					return ''
				}
			}
		},
		data() {
			return {
				
			}
		},
		methods: {
			event(e){
				console.log('e',e);
			}
		}
	}
</script>

<style>
	scroll-view ::-webkit-scrollbar {
		width: 0;
		height: 0;
		background-color: transparent;
	}
</style>
